/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


/*************************************************************************
 *\author: starlove
 *************************************************************************/
#ifndef __CC_PYTHON_IMPORT_O_SPRITE__
#define __CC_PYTHON_IMPORT_O_SPRITE__

#include <cocos2d.h>
#include "python_object_nodeobjects.h"

NS_CCPY_BEGIN
	CC_OBJECT_WRAPPER_DEF_BEGIN(CCSprite)
	CCSPRITE_OBJECT_WRAPPER_DEF_METHODS(CCSprite)
	CC_OBJECT_WRAPPER_DEF_END

	class CPySprite : public CPyCCObject
	{
	PYCLASS_DEF_INTERFACE(CPySprite)
	public:
		CPySprite();
		PYCLASS_METHOD_KW_DEF(CPySprite, setTextureRect);
		PYCLASS_METHOD_DEF(CPySprite, isFrameDisplayed);
		PYCLASS_METHOD_DEF(CPySprite, setDisplayFrameWithAnimationName);
		PYCLASS_METHOD_DEF(CPySprite, _updateColor);
		PYCLASS_METHOD_DEF(CPySprite, _setTextureCoords);
		PYCLASS_METHOD_DEF(CPySprite, _updateBlendFunc);
		PYCLASS_METHOD_DEF(CPySprite, _setReorderChildDirtyRecursively);
		PYCLASS_METHOD_DEF(CPySprite, _setDirtyRecursively);
		PYCLASS_GET_DEF(CPySprite, Quad);
		PYCLASS_GET_DEF(CPySprite, isTextureRectRotated);
		PYCLASS_GET_DEF(CPySprite, TextureRect);
		PYCLASS_GET_DEF(CPySprite, OffsetPosition);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, BatchNode);
		PYCLASS_SET_DEF(CPySprite, VertexRect);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, displayFrame);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, AtlasIndex);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, Dirty);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, TextureAtlas);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, FlipX);
		PYCLASS_GETSET_MAPPING_DEF(CPySprite, FlipY);
	};
NS_CCPY_END

#endif